package com.ftf.tp.blog.infrastructure.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ftf.tp.blog.infrastructure.mapper.pos.TagPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author tanghao
 * @date 2022/6/24
 */
public interface TagMapper extends BaseMapper<TagPO> {
    int updateBatch(List<TagPO> list);

    int batchInsert(@Param("list") List<TagPO> list);

    /**
     * 获取所有大类标签
     *
     * @return 所有的大类标签
     */
    List<TagPO> getBigTagAll();

    List<TagPO> getTagByIdList(List<Long> tagIdList);
}